var addPage = avalon.define({
	$id: "page",
	uid: "",
	info:{
		getWay:'0'
	},
	getWay:function(){
		var val=this.info.getWay;
		console.log(val);
		var result='';
		if(val=='1'){
			result=$.i18n.prop("jfxq_Register");
		}else if(val=='2') {
			result=$.i18n.prop("jfxq_Scan");
		}
		return result;
	}
});

mui.ready(function() {
	var mid = $.getParameter("mid");
	var url = "dahua://header?title="+$.i18n.prop("jfxq_jfxq");
	mui.openWindow({
		url: url 
	});
	
	mui.ajax('/integral/logging/get.json', {
		data: {
			id: mid
		},
		dataType: 'json',
		success: function(data) {
			console.log(data);
			console.log(addPage);
			if(""!=data&&null!=data){
				addPage.info=data;
			}
		}
	});
});
